// 验证账号登录
export const rules = {
  name: [
    { required: true, message: "请输入账号", trigger: "blur" },
    { pattern: /^[a-z0-9]{5,10}$/, message: "用户名必须是5-10个字母或数字", trigger: "blur" }
  ],
  password: [{ required: true, message: "请输入密码", trigger: "blur" }]
}
// 验证手机登录
export const rulesPhone = {
  name: [{ required: true, message: "请输手机号", trigger: "blur" }],
  verificationCode: [{ required: true, message: "请输入验证码", trigger: "blur" }]
}
